@import "../var.less";

#regionalSafety{
  .content{
    margin-top: 15px;position: relative;

    .content-map{
      height: calc(~"100vh - 48px - 45px - 32px");
      >.map-container{
        position: relative;height: 100%;box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);

        .map-right{
    			position: absolute;right: 10px;top:10px;z-index:182;padding: 0 15px;
    			width: 300px;box-shadow: @shadow-base;background: #fff;
    			transition:all @transition-time;

    			.title{
    				height: 36px;line-height: 36px;background: @primary-color;margin: 0 -15px;color:#fff;text-align: right;
    				>span{padding-left:10px;}
            >.text{float: left;width: calc(~"100% - 48px");text-align: center;}
    				>.tigger{
    					display: inline-block;border-left:1px solid darken(@primary-color, 8%);
    					.ivu-btn {height: 36px;width: 47px;vertical-align: top;text-align: center;}
    					.fa{font-size: 16px;vertical-align: middle;}
    				}
    			}
    			.table{
            margin: 10px 0;
    				td{border-right: 0;}
    			}

    			&.off{
    				width: 48px;height: 36px !important;overflow: hidden;
            .title{
              >.text{display: none;}
              >.tigger{border:none;}
            }
    			}

          li.active{
            background-color: @link-hover-color;
          }
    		}

        .maputil{
          position: absolute;right: 10px;bottom: 10px;
          >li{
            &:last-child{margin-bottom: 0;}
          }
        }
      }
    }

    .content-list{
      position: relative;
      .ivu-tabs.ivu-tabs-card .ivu-tabs-bar{
  			margin:0;
  			.ivu-tabs-tab{background: #fff;}
  			.ivu-tabs-tab-active{border-top: 1px solid @primary-color;}
  			.ivu-tabs-tab-active:before{
          content: '';display: block;width: 100%;height: 1px;background: @primary-color;
          position: absolute;top: 0;left: 0;
      	}
  		}
  		.ivu-tabs.ivu-tabs-card .ivu-tabs-tabpane{border:1px solid @border-color-base;border-top: 0;}
  		.ivu-tabs-tabpane{background: #fff;padding: 10px;position: relative;}
      .table:first-child{margin:0;}

      .chart-desc{
  			>.ivu-form-item-label{
  				text-align: right;vertical-align: middle;float: left;font-size: 12px;color: @text-color;line-height: 1;padding: 9px 12px 9px 0;box-sizing: border-box;
  			}
  			>.ivu-checkbox-group{overflow: hidden;line-height: 30px;}
  		}
    }
  }

  .team-marker{
    position: absolute;left: 0;top: 0;border: 1px solid #8e8e8e;width: auto;height: 22px;
    color: #555;font-size: 12px;white-space: nowrap;
    border-radius: 5px 5px 5px 0;background-color: #fffeef;
    &:before,&:after{
      content: '';
      display: block;
      position: absolute;
      width: 0;
      height: 0;
      border: solid rgba(0,0,0,0);
      border-width: 6px;
      left: 13px;
    }
    &:before{bottom: -13px;border-top-color: #8e8e8e;}
    &:after{ bottom: -12px;border-top-color: #fffeef;}
    >span{vertical-align: middle;padding: 3px 5px;display: inline-block;height: 20px;line-height: 16px;}
    >.team-marker-text{border-radius: 5px 0 0 0;}
    >.team-marker-data{color: #fff;border-radius: 0 5px 5px 0;background-color: #dc3912;}
  }

  .dist-marker{
    border-radius: 50%;text-align: center;color: #ffffff;
    width: 26px;height: 26px;
  }
}
